{extend name="public:_base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/uploadify/uploadify.css">
{/block}
{block name="js"}
{include file="public/_validform"}
<script type="text/javascript">
$("[name='uid']").find("[value='{$data.uid ?? ''}']").attr("selected", true);
</script>
{/block}
{block name="main"}

<div class="page-container">
    
    <form action="{:url(\''.\\think\\Request::instance()->controller().'/save')}" method="post" class="form form-horizontal" id="form">
        
        <table class="table table-border table-bordered table-bg table-style">
            <thead>
                <tr>
                    <th colspan="2" scope="col">填写信息</th>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <th>
                        类别：
                    </th>
                    <td>
						<select name="uid" class="select">
								<option value="0">父类</option>
							{volist name="auth_rule" id="vo"}
								<option value="{$vo.id}" >{$vo['html']}{$vo.title}</option>
							{/volist}
						</select>
                    </td>
                </tr>

				<tr>
                    <th>
                        标题：
                    </th>
                    <td>
                        <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="" name="title">
                    </td>
                </tr>

                <tr>
                    <th>
                        节点：
                    </th>
                    <td>
                        <input type="text" class="input-text" value="{$data.name ?? ''}" placeholder="" name="name">
                    </td>
                </tr>
            </tbody>
            
            <tfoot>
                <tr>
                    <th></th>
                    <td>
                        {:token()}
                        <input type="hidden" value="{$data.id ?? ''}" name="id">
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;重置&nbsp;&nbsp;">
                        <!-- <button onClick="layer_close();" class="btn radius btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button> -->
                    </td>
                </tr>
            </tfoot>
            
        </table>

    </form>
</div>
{/block}
